﻿using System.Collections.Generic;
using QDJwt.Token;
namespace MyApp.Model
{
    public class User:iUserInfo
    {
        public int UserId { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public List<iRole> Roles { get; set; }

        public IList<iRole> GetRoleInfos()
        {
            return Roles;
        }

        public string GetUserID()
        {
            return UserId.ToString();
        }

        public string GetUserName()
        {
            return UserName;
        }
    }
}